 /**
 /**
 * @api {POST} /api/users/setTransPass  设置交易密码
 * @apiGroup users
 * @apiVersion 0.0.1
 * @apiDescription 设置交易密码
 * @apiParam {String} userPhone   用户手机号
 * @apiParam {String} passWord  交易密码           
 * @apiSuccessExample {json} 返回样例:
 * {"code":0,"msg":"0x200","code":"data":{}}
 * @apiSampleRequest /api/users/setTransPass
 */

 /**
 /**
 * @api {GET} /api/users/UserPhone/:userPhone  查询users
 * @apiGroup users
 * @apiVersion 0.0.1
 * @apiDescription 查询users
 * @apiSuccessExample {json} 返回样例:
 * {"code":0,"msg":"0x200","code":"data":[{},{}]}
 * @apiSampleRequest /api/users/UserPhone/:userPhone
 */

 /**
 /**
 * @api {GET} /api/users/CheckPassWord/:userPhone/:passWord  验证用户密码
 * @apiGroup users
 * @apiVersion 0.0.1
 * @apiDescription 验证用户密码
 * @apiSuccessExample {json} 返回样例:
 * {"code":0,"msg":"0x200","code":"data":""}
 * @apiSampleRequest /api/users/CheckPassWord/:userPhone/:passWord 
 */ 


 /**
 /**
 * @api {POST} /api/users  添加users
 * @apiGroup users
 * @apiVersion 0.0.1
 * @apiDescription 添加users
 * @apiParam {String} userName 用户名
 * @apiParam {String} firstName   姓  
 * @apiParam {String} lastName  名        
 * @apiParam {enum} status enum('active','inactive')
 * @apiParam {String} userPhone  用户电话
 * @apiParam {String} invitor  邀请人
 * @apiParam {String} inviteurl  邀请人url
 * @apiParam {String} userPass  密码
 * @apiParam {String} passWord  支付密码
 * @apiParam {Int} social_id  社交ID 非必填
 * @apiSuccessExample {json} 返回样例:
 * {"code":0,"msg":"0x200","code":"data":''}
 * @apiSampleRequest /api/users
 */ 

 /**
 /**
 * @api {GET} /api/users/getFriend/:invitor.:order.:offset.:limitation  获取好友
 * @apiGroup users
 * @apiVersion 0.0.1
 * @apiDescription 获取好友
 * @apiSuccessExample {json} 返回样例:
 * {"code":0,"msg":"0x200","code":"data":""}
 * @apiSampleRequest /api/users/getFriend/:invitor.:order.:offset.:limitation
 */   



CREATE TABLE `log_coupon` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `module_id` varchar(255) DEFAULT NULL COMMENT '所属模块ID',
  `user_id` varchar(255) DEFAULT NULL COMMENT '用户ID',
  `type` tinyint(4) DEFAULT NULL COMMENT '消息类型',
  `level` tinyint(4) DEFAULT NULL COMMENT '消息等级',
  `status` tinyint(4) DEFAULT NULL COMMENT '消息状态',
  `content` text COMMENT '消息内容',
  `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `module` tinyint(4) DEFAULT NULL COMMENT '（1:userloan,2:userLoantransaction,3:repay,4:repaytransaction,）',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='优惠券消息表';








